package com.qpx.springbootdemo1.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Configuration
@ConfigurationProperties(prefix="my")
@PropertySource(value = {"classpath:/user.properties"})
@Data
public class UserConfig {


    private String name;

    private String username;
}
